package com.itheima.jdkdaili;

import com.itheima.jdkdaili.HongTea;
import com.itheima.jdkdaili.Tea;

public class DianTest {
    public static void main(String[] args) {
        //1.创建对象
        Tea myTea = new MyTea();
        //2.制作
        myTea.zuo();
        myTea.getTea();

        System.out.println("-------------------");

        //4.创建HongTea对象
        HongTea hongTea = new HongTea(myTea);
        hongTea.zuo();
        hongTea.getTea();
    }
}
